|
|
|
|
|
|
|
Dim strTemp As String
'
strTemp = GetToken(strSQLLine)
'
Select Case UCase(strTemp)
Case "1.0"
strVersion = dbVersion10
Case "1.1"
strVersion = dbVersion11
Case "2.0"
strVersion = dbVersion20
Case "3.0"
strVersion = dbVersion30
End Select
'
End Sub |
|
|
|
|
|
|
|
|
Next, add the code for the DBQUIET keyword. This sets a value that can suppress form displays. This is handy for performing script runs where you do not want to see any GUI display. Enter the code from Listing A.18. |
|
|
|
|
|
|
|
|
Listing A.18. Coding the SQLQuietFlag subroutine. |
|
|
|
|
|
|
|
|
Public Sub SQLQuietFlag()
'
Dim strTemp As String
'
strTemp = GetToken(strSQLLine)
'
If UCase(strTemp) = "YES" Then
blnSQLQuiet = True
Else
blnSQLQuiet = False
End If
'
End Sub |
|
|
|
|
|
|
|
|
The next three routines you add handle the DBOPEN, DBMAKE, and DBCLOSE script words. These are all non-SQL commands that you need in order to open, create, and close Microsoft Access Jet databases. The first one you add is the routine that handles opening a Microsoft Access Jet database. Use the Visual Basic menu to create a Public Sub routine named SQLdbOpen and enter the code in Listing A.19. |
|
|
|
|
|